﻿@{
    ViewBag.Title = "Historické tabuľky";
}
@section head {
    
    <style type="text/css">
        table { border: solid 1px #e8eef4; border-collapse: collapse; font-size: 12px; }
        tr:nth-child(odd) { background:#eee; }
        tr:nth-child(even) { background:#fff; }
    </style>
}

<h2>Historické tabuľky</h2>

<p></p>

<table width="60%">
@foreach (string item in ViewBag.Documents) 
{
    string clearName = @item.Substring(item.LastIndexOf('\\') + 4, item.Length - item.LastIndexOf('\\') - 8);
    
    <tr>
        <td width="90%">
            @clearName
        </td>
        <td width="10%" align="center">
            <a href="@Url.Content("~/Content/stats/total/" + item.Substring(item.LastIndexOf('\\'), item.Length - item.LastIndexOf('\\')))" target="_blank">
                <img src="@Url.Content("~/Content/icons/preview.gif")" alt="Preview" />
            </a>         
        </td>
    </tr>
}
</table>